package com.softaria.spkiller.layers.classificator.impl;

import java.io.IOException;

import com.softaria.spkiller.metadata.ClassMetaData;

public class NotPredicate implements ClassificationPredicate {


	private ClassificationPredicate operand;
	
	
	
	public NotPredicate(ClassificationPredicate operand) {
		super();
		this.operand = operand;
	}



	@Override
	public boolean matches(ClassMetaData metaData, ClassProbe classProbe)
			throws IOException {
		return !operand.matches(metaData, classProbe);
	}


}
